package com.tensquare.friend.service;

import com.tensquare.friend.dao.NoFriendDao;
import com.tensquare.friend.pojo.NoFriend;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;

/**
 * Created by WF on 2020/10/27 11:19
 */
@Service
@Transactional
public class NoFriendService {

    @Autowired
    private NoFriendDao noFriendDao;
    //1.添加非好友
    public void addNoFriend(String id, String friendid) {
        noFriendDao.save(new NoFriend(id,friendid));
    }
}
